package hw;

import java.io.Serializable;

public class Users implements Serializable {
    private String name;
    private String password;
    private int balance ;
    private int id ;


    public Users(){

    }

    public Users(String name, String password, int balance) {
        this.name = name;
        this.password = password;
        this.balance = balance;
    }


    @Override
    public String toString() {
        return "Users{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", balance=" + balance +
                ", id=" + id +
                '}';
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }
}
